package sxhm

// 获取计划
type RequestPlanParams struct {
	URL        string
	Token      string
	ID         string
	UserAgent  string
	Referer    string
	Origin     string
	AcceptLang string
}

// 订单

// 获取计划
type RequestOrderParams struct {
	URL        string
	Token      string
	ID         string
	UserAgent  string
	Referer    string
	Origin     string
	AcceptLang string
	OrderData  OrderData
}

type OrderData struct {
	OrderType         string        `json:"orderType"`
	OrderDetailList   []OrderDetail `json:"orderDetailList"`
	Remark            string        `json:"remark"`
	IsCreateVisitPlan string        `json:"isCreateVisitPlan"`
}

type OrderDetail struct {
	TicketId                    string `json:"ticketId"`
	Quantity                    int    `json:"quantity"`
	CurrentSalePrice            int    `json:"currentSalePrice"`
	VisitorCertificateNo        string `json:"visitorCertificateNo"`
	VisitorCertificateType      string `json:"visitorCertificateType"`
	VisitorMobile               string `json:"visitorMobile,omitempty"`
	VisitorName                 string `json:"visitorName"`
	UseStartDate                string `json:"useStartDate"`
	StaggeredReservationDailyId string `json:"staggeredReservationDailyId"`
	VisitPlanId                 string `json:"visitPlanId"`
	IsChildren                  string `json:"isChildren"`
}

type OrderResponse struct {
	Code  int    `json:"code"`
	Error string `json:"error"`
}
